﻿using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using Yq.BookList.Blog.Dtos;

namespace Yq.BookList.Blog
{
    /// <summary>
    /// 
    /// </summary>
    public interface IPostAppService : IApplicationService
    {
        /// <summary>
        /// 分页获取博客
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<PagedResultDto<PostListDto>> GetPagePost(GetPostInput input);

        /// <summary>
        /// 新增或者查询博客
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task CreateOrUpdatePost(CreateOrUpdatePostInput input);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task DeletePost(EntityDto<int> input);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task BatchDeletePost(List<int> input);

        /// <summary>
        /// 获取编辑状态下的Post实体
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<GetPostForEditOutput> GetForEditPost(NullableIdDto<int> input);

        /// <summary>
        /// 显示
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task ShowOrHidePost(ShowOrHidePostDto input);

        /// <summary>
        /// 批量显示
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task BatchShowOrHidePost(List<ShowOrHidePostDto> input);

    }
}